@extends('default.mobile.layouts.indexPublic')
@section('title'){{ $companyinfo->company_name.' - 招聘主页'}} @endsection

{{--首页css--}}
@section('headcss')
	@parent
	<link rel="stylesheet" href="{{asset('/default/css/mobile/index/common.css')}}">
	<link rel="stylesheet" href="{{asset('/default/css/mobile/index/company_info.css')}}">
@endsection
{{--头部标签--}}
@section('tag','公司详情')
{{--主体内容--}}
@section('content')

	<div class="company_con">
		<dl class="companyshow">
			<dt> {{ $companyinfo->company_name }}</dt>
			<dd><span>规模：</span>{{ $companyinfo->employee_num }}</dd>
			<dd><span>性质：</span>{{ $companyinfo->comkind }}</dd>
			<dd><span>行业：</span>{{ $companyinfo->industry }}</dd>
			<dd>
				{{--<span>福利：</span>--}}
				@foreach($companyinfo->temptation as $v)
					<em>{{ $v }}</em>
				@endforeach
			</dd>
		</dl>
	</div>

	<!-- B 公司简介 -->
	<div class="info">
		<div class="title">
			<i class="icon_introduction"></i><h2>公司简介</h2>
		</div>
		<div class="content">
			<div class=introduction>
				<p>{!! nl2br(e($companyinfo->profile)) !!}<p>
			</div>
		</div>
	</div>
	<!-- E 公司简介 -->

	<!-- B 工作地址 -->
	<div class="info">
		<div class="title">
			<i class="icon_address"></i><h2>地址</h2>
		</div>
		<div class="content">
			<div class="address">
				<span class="arrow">
					@if(!empty($companyinfo->longitude) && !empty($companyinfo->latitude))
						<a href="{{url('mobile/setmap_'.idEncryption($companyinfo->id).'.html')}}" >
							{{ str_limit($companyinfo->address,50) }}<i class="ic_arow"></i></a>
					@else
						<a onclick="javascript:layerMsg('您还未设置地图坐标！',2)" >
							{{ str_limit($companyinfo->address,50) }}<i class="ic_arow"></i></a>
					@endif
				</span>
			</div>
		</div>
	</div>
	<!-- E 工作地址 -->
	<!-- B 推荐职位 -->
	@if(count($jobinfo) > 0)
	<div class="info">
		<div class="title">
			<i class="icon_recommend"></i><h2>推荐职位</h2>
		</div>
		<div class="info_box">
			@foreach($jobinfo as $v)
				<div class="list">
					<a href="{{url('mobile/jobinfo_'.idEncryption($v->id).'.html')}}">
						<dl>
							<dt><span class="title_name">
									<span class="job_title">{{ str_limit($v->job_title,18) }}</span>
									@if(!empty($v->part_status) && $v->part_status == '2')
										<em class="one"></em>
									@elseif(!empty($v->part_status) && $v->part_status == '3')
										<em class="two"></em>
									@elseif(!empty($v->part_status) && $v->part_status == '4')
										<em class="three"></em>
									@endif
									@if($v->urgent ==1 ) <i></i> @endif
								</span>
								<time>{{ substr($v->updatetime,0,10) }}</time></dt>
							<dd>
								@if($v->education != '')<span class="edu">{{ $v->education }}</span>@endif
								@if($v->work_year != '')<b>|</b><span class="edu">{{ $v->work_year }}</span>@endif
								@if($v->salary_above != '')<span class="money">{{ $v->salary_above }}</span>@else面议@endif
							</dd>
						</dl>
					</a>
				</div>
			@endforeach
		</div>
	</div>
	@endif
	<!-- E 推荐职位 -->
@endsection
@section('footerjs')
	@parent

@endsection
